package com.gitee.cirnochat.chat.model.vo.resp;

import com.gitee.cirnochat.chat.model.enums.MessageOperation;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Schema(description = "撤回消息响应")
@NoArgsConstructor
public class ChatMessageRevokeResponse {
    @Schema(description = "消息ID")
    private Long messageId;

    @Schema(description = "消息操作")
    private MessageOperation operation;

    public ChatMessageRevokeResponse(Long messageId) {
        this.messageId = messageId;
        this.operation = MessageOperation.REVOKE;
    }
}
